3.5 Button colors

Button colors are fixed by two color structures: plaquecolors, inherited from the class plaque ( section 2.2 ), and

struct buttoncolors { COLORS
disabledtext,
hldisabltext, // color of highlighted disabled text
enabledtext,
activetext; };

The members of this structure correspond to the states of the button (See sect. 3).

There are two pre-defined sets of colors for buttons:

//--- Default button colors
const plaquecolors butcoldflt = { DARKGRAY, BLACK, LIGHTGRAY };
const buttoncolors
        buttextdflt = {
                                 BLACK,         // disabled
                                 LIGHTGRAY,     // disabled highlighted
                                 GREEN,         // enabled
                                 LIGHTGREEN};   // enabled highlighted

//--- Quit button colors
const plaquecolors quitbutcol={  RED, BLACK, LIGHTGRAY };
const buttoncolors quittexcol={ BLACK, DARKGRAY, LIGHTGRAY, WHITE };

Default colors are the colors that button will have if you haven't decided otherwise. The example of the customized colors is the Quit button colors - the pre-defined constants that allow to emphasize the Quit button.